package com.stox.util;

import java.io.File;


public class PathUtil{
	
	private static String rootPath;
	
	public static String getRootPath() {
		if(null == rootPath) 			rootPath = System.getProperty("stox.path.root");
		if(null == rootPath) 			rootPath = System.getProperty("user.home")+File.separator+".stox";
		return rootPath.endsWith(File.separator) ? rootPath : rootPath+File.separator;
	}
	
}
